$(document).ready(function() {
	
	//开场第一屏动画开始
	
	setTimeout(function() {
		
		$(".section1 .zss_hengline").addClass("helinadd");
		
	}, 300);
	
	$('.zss_wlwkztitle p,.zss_vrimg1').delay(300).animate({

		left: '0'

	}, 1200, 'easeOutExpo');
	
	//开场第一屏动画结束
	
	$(".dowebok").fullpage({

		slidesColor: ['#FFFEF2', 'white'],

		verticalCentered: true,

		anchors: ['page1', 'page2'],

		menu: '#zss_nav',

		//paddingTop: '3rem',

		scrollingSpeed: 600,

		easing: "easeOutCubic",

		navigation: true,

		css3: true,

		afterLoad: function(anchorLink, index) {
			
			if(index == '1') {

				$(".section1 .zss_hengline").addClass("helinadd");
				
				$('.zss_wlwkztitle p,.zss_vrimg1').delay(300).animate({

					left: '0'

				}, 1200, 'easeOutExpo');

			}

			

			if(index == 2) {
				
				$(".section2 .zss_hengline").addClass("helinadd");
				
				$(".zss_wlwkztitle2 p").addClass("zss_vrplus");
				
				$('.zss_vrimg2 img').addClass("zss_img2plus");
				

			}
			
		},

		onLeave: function(index, direction) {
			
			if(index == '1') {
				
				$(".section1 .zss_hengline").removeClass("helinadd");
				
				$('.zss_wlwkztitle p').delay(300).animate({

					left: '-100rem'

				}, 100, 'easeOutExpo');

				$('.zss_vrimg1').delay(300).animate({

					left: '100rem'

				}, 100, 'easeOutExpo')
			}

			if(index == '2') {
				
				$(".section4 .zss_hengline").removeClass("helinadd");
				
				setTimeout(function(){
					$(".zss_wlwkztitle2 p").removeClass("zss_vrplus");
				
					$('.zss_vrimg2 img').removeClass("zss_img2plus");
					
				},300)
			}
			
		}

	});


	
});